package cn.wsxiot.leetcode.utils;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Utils {

    public static FileInputStream getFIS(int problemNum, int caseNum) {

        String path = Utils.class.getResource("/").getPath();
        File file = new File(path + "input/input" + problemNum +  "/input" + caseNum + ".txt");

        FileInputStream fis = null;
        try {
            fis =  new FileInputStream(file);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        return fis;
    }
}
